<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('review/index')}">评论列表</a></li>
		</ul>
		<!--<form class="well form-search" method="post" action="{:U('review/index')}">-->
			<!--评论名称:-->
			<!--<input type="text" name="name" style="width: 100px;" value="{:I('request.name/s','')}" placeholder="请输入评论名称">-->
			<!--<input type="submit" class="btn btn-primary" value="搜索" />-->
			<!--<a class="btn btn-danger" href="{:U('review/index')}">清空</a>-->
		<!--</form>-->

			<div class="table-actions">
				<button type="submit" class="btn btn-primary btn-small js-ajax-submit">{:L('SORT')}</button>
			</div>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="10">ID</th>
						<th width="35">评论用户</th>
						<th width="35">评论菜谱</th>
						<th width="25">评论内容</th>
						<th width="45">评论时间</th>
						<th width="120">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="reviews" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.username}</td>
						<td>{$vo.cookname}</td>
						<td>{$vo.content}</td>
						<td>{$vo.create_time}</td>
						<td>
							<a href="{:U('review/viewReply',array('id'=>$vo['id']))}">查看所有回复</a> |
							<a href="{:U('review/addReply',array('id'=>$vo['id'],'cook_id'=>$vo['cook_id']))}">回复</a> |
							<a href="{:U('review/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
						</td>
					</tr>
					</foreach>
				</tbody>
				<tfoot>
				<tr>
					<th width="10">ID</th>
					<th width="35">评论用户</th>
					<th width="35">评论菜谱</th>
					<th width="25">评论内容</th>
					<th width="45">评论时间</th>
					<th width="120">{:L('ACTIONS')}</th>
				</tr>
				</tfoot>
			</table>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>